/*
 * $Id$
 */
package corejs.stmt;

import corejs.rt.ActivationRecord;
import corejs.expr.Expression;


import corejs.util.XmlPrinter;

/**
 *
 * @author myang
 */
public class ExpressionStatement extends Statement {

   private Expression _expr;

   public ExpressionStatement(final Expression expr) {
      _expr = expr;
   }

   public Expression expr() {
      return _expr;
   }

   @Override
   public void execute(final ActivationRecord scope) {
   }

   @Override
   public void print(final XmlPrinter printer) {
      _expr.print(printer);
   }

   @Override
   public void accept(final StatementVisitor visitor) {
      visitor.visitExpression(_expr);
   }
   
}
